home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 267 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.5 KB

  1. Path: dawn.mmm.com!news
  2. From: kjhopps@mmm.com (Kevin J Hopps)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: What has C++ got?
  5. Date: 3 Jan 1996 13:49:25 GMT
  6. Organization: 3M - St. Paul, MN  55144-1000 US
  7. Message-ID: <4ce1h5$7pu@dawn.mmm.com>
  8. References: <4bfdkd$qha@insosf1.netins.net> <tran0119.819779463@gold.tc.umn.edu> <4bsb4g$ai8@news1.sunbelt.net>
  9. Reply-To: kjhopps@mmm.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. dking@SunBelt.Net wrote:
  13. > In article <tran0119.819779463@gold.tc.umn.edu>,
  14. >    tran0119@gold.tc.umn.edu (Cuong Q Tran) wrote:
  15. > >jdevries@netins.net (Joel DeVries) writes:
  16. > >
  17. > >>Can somebody tell me what C++ can do or what C++ has that ordinary C
  18. > >>doesn't have?        Thanks
  19. > >
  20. > >   It has two extra plus signs.  Read the FAQs.
  21. > >
  22.  
  23. > From what I've seen, nothing that makes it worth useing. Between the lack of 
  24. > decent tutorials (at least for beginners), proprietary functions found only 
  25. > with specific software (ie Microsoft's getline), and a host of other 
  26. > headaches, I wouldn't bother with it.. I have just about decided to hell with 
  27. > C++ and decided to my hand with basic. At least it makes sense...
  28.  
  29. Too bad you didn't get more help starting out with C++.  You might have
  30. really liked it.
  31.  
  32. After using C++ for three years and having to go back to C for a project,
  33. I am acutely aware of some of the things C++ has that C hasn't got.  The
  34. most basic things I missed were constructors, destructors and copying --
  35. having structs initialized, cleaned up and copied correctly without
  36. explicit function calls.
  37.  
  38. I missed exceptions as well.  Having to go back to "return-codes," I found
  39. that my code was much harder to read and write because it ended up with
  40. much more deeply nested if-tests.  I struggled to get the resource cleanup
  41. at the proper level of indenting.
  42.  
  43. You can also throw in the absence of a character string class and pre-built
  44. container classes.  After using template vectors for so long, it was really
  45. a nuisance to have to do arrays "by hand" again.
  46.  
  47. Even if one never took advantage of the object-oriented features of C++,
  48. the object-based features are easy to pick up for most C programmers and
  49. [IMHO] make programming much nicer.
  50. --
  51. Kevin J. Hopps                  e-mail: kjhopps@mmm.com
  52. 3M Company                      phone:  (612) 737-4643
  53. 3M Center, Bldg. 235-2D-57      fax:    (612) 737-2700
  54. St. Paul, MN 55144-1000         Opinions are my own.  I don't speak for 3M.
  55.     But 3M speaks for me -- I did not write the following line:
  56.  
  57. Opinions expressed herein are my own and may not represent those of 3M.
  58.